<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<script type="text/javascript">
function doQuery() {
	document.form1.action = "${path}/routine/agent/index/list";
	document.form1.submit();
}
</script>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<form action="" name="form1" method="post">
			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						佣金查询
					</div>
				</div>
				<div class="webpart-main">
					<div class="webpart-main-item" style="padding-top: 12px;">
						<!----------- 查询信息 ------------------>
						<div class="search">
							<table cellspacing="0" cellpadding="0">
								<tbody>
									<tr>
										<th>
											开始年月：
										</th>
										<td>
											<input type="text" class="input-txt" readonly="readonly"
												id="startdate" name="startdate" value="${startdate}"
												onclick="WdatePicker({dateFmt:'yyyy年MM月',realDateFmt:'yyyyMM',vel:'endyearmonth',minDate:'#F{$dp.$D(\'startdate\',{d:0});}'})" />
										</td>
										<th>
											结束年月：
										</th>
										<td>
											<input type="text" class="input-txt" readonly="readonly"
												id="enddate" name="enddate" value="${enddate}"
												onclick="WdatePicker({dateFmt:'yyyy年MM月',realDateFmt:'yyyyMM',vel:'endyearmonth',minDate:'#F{$dp.$D(\'startdate\',{d:0});}'})" />
										</td>
										<td rowspan="2">
											<a class="linkbtn" href="javascript:" onclick="doQuery()"><span>查
													询</span>
											</a>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<!-- 查詢列表 -->
						<table class="dg_borderstyle trStyleTable" cellspacing="0" id="mytable" 
							cellpadding="0" style="margin-top: 15px; text-align: center;"> 
								<tr>
									<th>
										<span>序号</span>
									</th>
									<th>
										<span>代理人</span>
									</th>
									<th>
										<span>发佣年月</span>
									</th>
									<th>
										<span>税后佣金</span>
									</th>
									<th>
										<span>保单信息</span>
									</th>
									<th>
										<span>利益信息</span>
									</th>
								</tr> 
								<c:forEach items="${pagination.resultList}" var="list">
									<tr>
										<td>
											${list.ROWINDEX}
										</td>
										<td>
											${list.AGENTNAME}
										</td>
										<td>
											${list.COMMISSIONYEARMONTH}
										</td>
										<td>
											${list.INCOMEAMOUNT}
										</td>
										<td>
											<a
												href="${path}/routine/agent/index/policylist?commDate=${list.COMMISSIONYEARMONTH}">
												明细</a>${list.COUNTAMOUT}
										</td>
										<td>
											<a
												href="${path}/routine/agent/index/show?commDate=${list.COMMISSIONYEARMONTH}">
												明细</a>${list.branchName}
										</td>
									</tr>
								</c:forEach> 
						</table>
						<c:if test="${not empty pagination.multiPage}">
							<div class="dg_pagerstyle">
								<div class="pageinfo">
									第${pagination.page }页 | 共${pagination.totalPages
									}页/${pagination.totalRows }条记录
								</div>

								<div class="pagebtn">
									${pagination.multiPage}
								</div>
							</div>
						</c:if>
					</div>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item">
					</div>
				</div>
			</div>

		</form>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>
